package com.filldream.fastboot.common.util.entity;

import lombok.Data;
import java.io.Serializable;

/**
 * @author RickSun
 * @Description Http请求结果DTO
 **/
@Data
public class HttpDTO implements Serializable {

	private static final long serialVersionUID = 2168152194164783950L;

	/**
	 * 响应状态码
	 */
	private int code;

	/**
	 * 响应数据
	 */
	private String content;

	public HttpDTO(int code) {
		this.code = code;
	}

	public HttpDTO(int code, String content) {
		this.code = code;
		this.content = content;
	}

	//简化getContent()代码而定的冗余代码
	public String c(){
		return getContent();
	}

}
